﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using GalaSoft.MvvmLight.Messaging;

namespace InsuranceAdjuster.Views
{
    public partial class SyncSettingsView : Page
    {
        public SyncSettingsView()
        {
            InitializeComponent();

            Messenger.Default.Register<DialogMessage>(
                this, message =>
                {
                    if (this.Visibility != System.Windows.Visibility.Visible 
                        || this.IsEnabled == false
                        || this.Parent == null)
                        return;

                    var MyResult = MessageBox.Show(message.Content, "Information", message.Button);
                    message.ProcessCallback(MyResult);
                });
        }

    }
}
